package com.yfp.operation.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import jakarta.validation.constraints.NotNull;

/**
 * 经纬度坐标实体类
 */
@Data
@Tag(name = "经纬度坐标实体类")
public class CoordinateDTO {

    /**
     * 经度
     */
    @NotNull(message = "经度不能为空")
    @Schema(description = "经度")
    private Double longitude;

    /**
     * 纬度
     */
    @NotNull(message = "纬度不能为空")
    @Schema(description = "纬度")
    private Double latitude;

}
